import axios from 'axios'

// 创建axios实例
const service = axios.create({
  baseURL: 'http://120.24.171.137:1337/',
  timeout: 5000
})

// 请求拦截器
service.interceptors.request.use(config => {
  return config
})

// 响应拦截器
service.interceptors.response.use(
  (response) => {
    // console.log(55,response);
    return response
  },
  (error) => {
    console.log(66, error)
    return Promise.reject(error)
  }
)

// 导出axios实例
export default service
